<template>
  <!-- 底部内容 -->
  <div id="dibu">
    <div class="top1">
      <ul>
        <router-link :to="item.path" v-for="item in arr" :key="item.path">
          <img
            :src="item.path === $route.path ? item.select_img : item.no_img"
            alt=""
          />
          <p>{{ item.text }}</p>
        </router-link>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  props: ["arr"],
};
</script>

<style scoped>
html,
body,
#box {
  background: #fff;
  height: 100%;
}
#box {
  max-width: 7.5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
#kong {
  height: 0.9rem;
}
/*底部内容*/
#dibu {
  height: 0.9rem;
  width: 7.5rem;
  background-color: #fff;
  position: fixed;
  bottom: 0;
  /* margin-top: 20px; */
}
#dibu .top1 ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;
}
#dibu .top1 ul li {
  width: 1.8rem;
  text-align: center;
}
#dibu .top1 ul a {
  text-align: center;
}
#dibu .top1 ul .iconfont {
  font-size: 0.4rem;
  text-align: center;
  color: #999;
}
#dibu .top1 ul p {
  font-size: 0.1rem;
  color: #a2a2a2;
}
#dibu .top1 ul .li1 span {
  color: #ff6040;
}
#dibu .top1 ul .li1 p {
  color: #ff6040;
}
#dibu .bottom1 {
  display: flex;
  height: 0.6rem;
  align-items: flex-end;
  justify-content: center;
}
#dibu .bottom1 p {
  width: 2.68rem;
  height: 0.1rem;
  background: #000;
  border-radius: 0.2rem;
}
</style>